/**
 * @(#)IProcessInstanceKeyGenerator.java Jan 14, 2010
 *   
 * Copyright  (c) 2009-2010 Wilmar IT Service,  Inc.   
 * All  rights  reserved.   
 * TODO
 */

package com.wilmar.process.core.services.spi;

import java.io.Serializable;
import java.util.Map;

import com.wilmar.process.entity.User;

/**
 * 流程实例关键字生成器
 * 
 * @author makubex Email:makubexnet@gmail.com
 * @version 1.0.0
 */
public interface IProcessInstanceKeyGenerator extends Serializable {

	/**
	 * 生成一个流程实例关键字
	 * 
	 * @param parameterMap
	 *            表单包含的参数
	 * @param instanceStarter
	 *            流程实例发起人
	 * @return 流程实例关键字
	 */
	public String generateProcessInstanceKey(
			Map<String, String[]> parameterMap, User instanceStarter);
}
